<template>
  <header>
    <h1 class="logo">茶七网</h1>
    <div class="search" @click="goSearch">
      <i class="iconfont icon-fangdajing"></i>
      <span>搜您喜欢的...</span>
    </div>
    <div class="kefu">
      <i class="iconfont icon-kefu"></i>
    </div>
  </header>
</template>

<script>
export default {
  methods: {
    goSearch() {
      this.$router.push("/search");
    },
  },
};
</script>

<style scoped>
header {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 1.6rem;
  background-color: #b0352f;
}
header h1 {
  padding: 0 0.266666rem;
  width: 3.2rem;
  height: 1.333333rem;
}
header h1 img {
  width: 100%;
  height: 100%;
}
.search {
  display: flex;
  align-items: center;
  width: 5rem;
  height: 0.8rem;
  background-color: #ffffff;
  border-radius: 12px;
}
.search i {
  padding: 0 0.16rem;
  color: #ccc;
}
.logo {
  font-size: 26px;
  color: #fff;
  letter-spacing: 8px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  margin-top: 10px;
}
.search span {
  font-size: 0.373333rem;
  color: #ccc;
}
.kefu i {
  font-size: 0.96rem;
  color: #fff;
}
</style>
